package com.tinyspot.concrete.ribbon.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 全局策略设置
 * @author Tinyspot
 * @date 2023-01-04 20:59
 */
@Configuration
public class MyRule {

    @Bean
    public IRule ribbonRule() {
        return new RandomRule();
    }
}
